/**
 * 
 */
package datamodel.rucksack;

/**
 * class which represents a RucksackObject<br>
 * holds their value and weight
 */
public class RucksackObject {
	
	/**
	 * The value of this RucksackObject
	 */
	private int value = 0;
	
	/**
	 * The weight of this RucksackObject
	 */
	private int weight = 0;
	
	/**
	 * constructor
	 * 
	 * @param value the value of this RucksackObject 
	 * @param weight the weight of this RucksackObject
	 */
	public RucksackObject(int value, int weight){
		this.value = value;
		this.weight = weight;
	}

	/**
	 * Gets the value of this RucksackObject
	 * @return the value of this RucksackObject
	 */
	public int getValue() {
		return value;
	}


	/**
	 * Gets the weight of this RucksackObject
	 * @return the weight of this RucksackObject
	 */
	public int getWeight() {
		return weight;
	}



}
